<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<!-- 
	<ui:composition template="">
	</ui:composition>
 --> 
 
     <h:head>
        <title>Login Web</title>
    </h:head>
    <h:body>
      <h:form id="formLogin">
        <h1><h:outputText id="bemVindo" value="Bem vindo(a) ao sistema."/></h1>
        <h:panelGrid id="gridLoginSenha" columns="2">
          <h:outputText id="loginLabel" value="Login:"/>
          <h:inputText id="login" label="Login" 
          value="#{loginMB.usuario.login}" require="true"/>
 
          <h:outputText id="senhaLabel" value="Senha:"/>
          <h:inputSecret id="senha" label="Senha" 
          value="#{loginMB.usuario.senha}" required="true"/>
        </h:panelGrid>
        <h:message id ="msgerro" style="color: red"/>
        <h:commandButton id="botao" value="Entrar" action="#{loginMB.doEfetuarLogin}"/>
      </h:form>
    </h:body>	
	
	</html>